x11: Set override_redirect on input-only windows
authorBenjamin Otte <otte@redhat.com>
Sun, 6 Nov 2016 14:43:06 +0000 (15:43 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 6 Nov 2016 14:43:06 +0000 (15:43 +0100)
b9955cfff1a2290c7826565049c934d237e9028f broke this.

gdk/x11/gdkwindow-x11.c

index 279c233f870f6d4c0ad3f8bcceb8ac6d36cfd501..f003dc37508791424c233821afec7136a535118b 100644 (file)
@@ -977,6 +977,14 @@ _gdk_x11_display_create_window_impl (GdkDisplay    *display,
     {
       class = InputOnly;
 
+      if (window->window_type == GDK_WINDOW_TEMP)
+        {
+          xattributes.override_redirect = True;
+          xattributes_mask |= CWOverrideRedirect;
+
+          impl->override_redirect = TRUE;
+        }
+
       depth = 0;
     }